<?php


/**
 * 友情连接Model
 * Enter description here ...
 * @author Admin
 *
 */
class LinksModel extends CommonModel {
	
	/**
	 * 获取数据
	 * @see CommonModel::getdata()
	 */
	public function getdata(){
		$map['state']=array('eq',1);
		
		$data = $this->where($map)->order('id desc')->limit($limit)->findAll();
		return $data;
	}
}
?>